//
//  UIViewController+ILGUIKit.h
//  ILGDemo
//
//  Created by zhangtongle-Pro on 2017/11/16.
//  Copyright © 2017年 Happy. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (ILGUIKit)

@property (nonatomic, assign) BOOL ilg_isNavigationBarHidded;
@property (nonatomic, assign) BOOL ilg_isTabBarHidded;

+ (instancetype)ilg_VCFromSB:(NSString *)SBName;
+ (instancetype)ilg_VCFromXIB;

- (void)ilg_setNavigationBarBGColor:(UIColor *)color;
- (void)navigationBackButtonDidTap;

@end


@interface UIViewController (ILGHalfScreen)

@property (nonatomic, assign) CGFloat vcHeight; // 控制器的高度，默认为屏幕的一半
@property (nonatomic, strong) UIColor *colorForBlank; //顶部空白处的颜色，默认为黑色
@property (nonatomic, assign) CGFloat alphaForBlank; // 顶部空白处的透明度，默认为全透明

@end

@interface ILGPresentationController : UIPresentationController

@property (nonatomic, assign) CGFloat vcHeight; // 控制器的高度，默认为屏幕的一半
@property (nonatomic, strong) UIColor *colorForBlank; //顶部空白处的颜色，默认为黑色
@property (nonatomic, assign) CGFloat alphaForBlank; // 顶部空白处的透明度，默认为全透明

@end
